<?php

class NewestReality extends AbstractBox {
	
	protected $template = 'reality/newest-reality.tpl';

	protected function setup() {
		$realityRepository = new RealityRepository();
		$realityRepository->addOrderBy(array('crdate' => 'DESC'));
		$realityRepository->setLimit(4);
		MySmarty::assign('newestReality', $realityRepository->getAll());
	}
}

?>